<template>
  <div ref="divRef" style="width: 100%;height: 550px" class="aie-theme-light"></div>
</template>
<script setup>
import {AiEditor} from "aieditor";
import {onMounted, ref} from "vue";

const divRef = ref()

const init = () => {
  new AiEditor({
    element: divRef.value,
    placeholder: "点击输入内容...",
    content: '请提问！',
    ai: {
      model: {
        xinghuo: {
          appId: "2f915878",
          apiKey: "f30527bb4adf50be19bd5c0da6992306",
          apiSecret: "ZDEzMDA2YTY5OTljMGQyODQ3MmJkNDhk",
        }
      }
    }
  })
}


onMounted(() => {
  init();
})
//

</script>
<style scoped>
</style>